angular.module('mamApp').controller('messageDetailController', ['$scope', '$state','messageManager','$sce',
    function ($scope, $state,messageManager,$sce) {

    $scope.$sce = $sce;

    $scope.search = {
        messageId:$state.params.messageId,
    };

    messageManager.messageDetail($scope.search.messageId).then(function (result) {
        console.log(result)
        $scope.messageDetail = result.data.messageVO;

    });


}])

